
const { addWebpackAlias, override, fixBabelImports } = require('customize-cra')
const path = require('path')
function pathResolve(pathUrl) {
    console.log(pathUrl);
    return path.join(__dirname, pathUrl)
}

module.exports = override(
    addWebpackAlias({
        '@': pathResolve('./src'),
        'assets': pathResolve('./src/assets'),
        'components': pathResolve('./src/components'),
        'helpers': pathResolve('./src/helpers'),
        'constants': pathResolve('./src/constants'),
        'pages': pathResolve('./src/pages'),
        'typings': pathResolve('./src/typings'),
        'apis': pathResolve('./src/apis'),
        'hooks': pathResolve('./src/hooks'),
        'reducers': pathResolve('./src/reducers')
    })
);
